package adv4;

import java.util.Scanner;

public class Wrap2Test2 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入第一个字符串:");
		String str1 = in.nextLine();
		System.out.println("请输入第二个字符串:");
		String str2 = in.nextLine();

		String regex = str2;
		String strS = str1.replaceAll("[" + regex + "]", "");// 把符合regex条件的替换成空字符串
		System.out.println(strS);
	}

}
